home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: jlilley@ix.netcom.com (John Lilley)
- Newsgroups: comp.lang.c++
- Subject: Re: Can someone help a beginner?
- Date: 24 Mar 1996 05:30:06 GMT
- Organization: Netcom
- Message-ID: <4j2mku$j4l@dfw-ixnews4.ix.netcom.com>
- References: <4isjtr$j4r@morgoth.sfu.ca>
- NNTP-Posting-Host: den-co25-11.ix.netcom.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-NETCOM-Date: Sat Mar 23 11:30:06 PM CST 1996
- X-Newsreader: WinVN 0.99.7
-
- In article <4isjtr$j4r@morgoth.sfu.ca>, kubo@news.sfu.ca says...
- >
- > I need to know if there are procedures that make getting the
- >current date, and calculating future dates easy. I'm using a Unix C
- >compiler. I've so far found the function ctime that will return the
- >date as string but I'm looking for a function that will allow me to
- >easily calculate future dates. Is there such function built into the
- >language or do I need to implement that by myself?
-
- Check out the "struct tm" family of functions, especially mktime(),
- because that is the function that allows you to do date arithmetic
- by "normalizing" dates.
-
- john lilley
-
-